import { YDocument, DocumentChange } from '@jupyter/ydoc';

export type MindElixirDocChange = {
} & DocumentChange;

export class MindElixirDoc extends YDocument<MindElixirDocChange> {
    private _source: string = ""

    constructor() {
        super();
    }

    get version() {
        return '3.0.0';
    }

    get source() {
        return this._source;
    }

    set source(value: string) {
        this._source = value;
    }

    public getSource(): string {
        return this.source
    }

    public setSource(value: string): void {
        this.source = value;
    }

    static create(): MindElixirDoc {
        return new MindElixirDoc();
    }
}